urls=("/sld/v2/api-docs" "/logaudit/v2/api-docs?group=%E6%97%A5%E5%BF%97%E4%B8%AD%E5%BF%83")
urls[${#urls[@]}]="/servicecenter/v2/api-docs?group=%E6%9C%8D%E5%8A%A1%E4%B8%AD%E5%BF%83"
urls[${#urls[@]}]="/wuxingshan/v2/api-docs?group=%E6%B6%88%E6%81%AF%E4%B8%AD%E5%BF%83"
# urls[${#urls[@]}]="/weeconfig/v2/api-docs"
urls[${#urls[@]}]="/uip/v2/api-docs"
urls[${#urls[@]}]="/operation/v2/api-docs"
urls[${#urls[@]}]="/baojinnang/v2/api-docs"
urls[${#urls[@]}]="/nanshan/v2/api-docs?group=%E8%B5%84%E4%BA%A7%E7%AE%A1%E7%90%86"
urls[${#urls[@]}]="/videocenter/v2/api-docs?group=%E7%9B%91%E6%8E%A7%E8%A7%86%E9%A2%91%E7%AE%A1%E7%90%86"

for url in ${urls[@]}
do
  name=${url}
  url="http://192.168.0.190:8700"${url}
  name=`echo ${name#*/}`
  file_name=`echo ${name%%/*}`
  echo ${file_name}
  echo $url
  curl 'http://localhost:8080/downloadWord?url='"${url}"'' -o ${file_name}.docx
done
